#!/bin/bash

bExist=`rpm -qa | grep webpdf`
if [ -n ${bExist} ]; then
	echo "--> Begin to remove phantom-online"
	rpm -e webpdf
fi

echo "--> Begin to install phantom-online"
cd /tmp/phantomonline
rpm -ivh foxitwebpdfviewer_linux_x64.rpm

echo "--> install phantom-online success, http://192.168.65.10:8890/"

